package com.snaildesign.countdown.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="COUNT_DOWN_COMMENT"
 *     
*/
public class CountDownComment implements Serializable {

    /** identifier field */
    private String commentId;

    /** persistent field */
    private BigDecimal seq;

    /** persistent field */
    private String comment;

    /** nullable persistent field */
    private Date commentDate;

    /** persistent field */
    private com.snaildesign.countdown.model.UserInfo userInfo;

    /** persistent field */
    private com.snaildesign.countdown.model.CountDown countDown;

    /** full constructor */
    public CountDownComment(String commentId, BigDecimal seq, String comment, Date commentDate, com.snaildesign.countdown.model.UserInfo userInfo, com.snaildesign.countdown.model.CountDown countDown) {
        this.commentId = commentId;
        this.seq = seq;
        this.comment = comment;
        this.commentDate = commentDate;
        this.userInfo = userInfo;
        this.countDown = countDown;
    }

    /** default constructor */
    public CountDownComment() {
    }

    /** minimal constructor */
    public CountDownComment(String commentId, BigDecimal seq, String comment, com.snaildesign.countdown.model.UserInfo userInfo, com.snaildesign.countdown.model.CountDown countDown) {
        this.commentId = commentId;
        this.seq = seq;
        this.comment = comment;
        this.userInfo = userInfo;
        this.countDown = countDown;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="COMMENT_ID"
     *         
     */
    public String getCommentId() {
        return this.commentId;
    }

    public void setCommentId(String commentId) {
        this.commentId = commentId;
    }

    /** 
     *            @hibernate.property
     *             column="SEQ"
     *             length="22"
     *             not-null="true"
     *         
     */
    public BigDecimal getSeq() {
        return this.seq;
    }

    public void setSeq(BigDecimal seq) {
        this.seq = seq;
    }

    /** 
     *            @hibernate.property
     *             column="comment"
     *             length="200"
     *             not-null="true"
     *         
     */
    public String getComment() {
        return this.comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    /** 
     *            @hibernate.property
     *             column="COMMENT_DATE"
     *             length="7"
     *         
     */
    public Date getCommentDate() {
        return this.commentDate;
    }

    public void setCommentDate(Date commentDate) {
        this.commentDate = commentDate;
    }

    /** 
     *            @hibernate.many-to-one
     *             not-null="true"
     *            @hibernate.column name="USER_ID"         
     *         
     */
    public com.snaildesign.countdown.model.UserInfo getUserInfo() {
        return this.userInfo;
    }

    public void setUserInfo(com.snaildesign.countdown.model.UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    /** 
     *            @hibernate.many-to-one
     *             not-null="true"
     *            @hibernate.column name="COUNT_DOWN_ID"         
     *         
     */
    public com.snaildesign.countdown.model.CountDown getCountDown() {
        return this.countDown;
    }

    public void setCountDown(com.snaildesign.countdown.model.CountDown countDown) {
        this.countDown = countDown;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("commentId", getCommentId())
            .toString();
    }

}
